﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Core
{
    /// <summary>
    /// 组件定义
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class XPartAttribute : Attribute
    {
        /// <summary>
        /// 组件名称
        /// </summary>
        public string Name { get; private set; }
        /// <summary>
        /// 组件描述
        /// </summary>
        public string Caption { get; private set; }

        public XPartAttribute(string name, string caption)
        {
            Name = name;
            Caption = caption;
        }
    }
}
